Skip to content

README: visuals from the running program, record mode - #2

Merged
ilyaeis merged 3 commits into
mainfrom
docs/readme-visuals
Oct 31, 2026
Merged

ilyaeis merged 3 commits into
mainfrom
docs/readme-visuals

Conversation

@ilyaeis

@ilyaeis ilyaeis commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Adds real visuals to the README. All images are frames saved by the program itself.

Five short clips from the program: Quick sort as columns, Merge sort as points, Heap sort on a circle, Radix sort as a spiral, and Shell sort as a pyramid.

The five layouts in the middle of a sort: columns, points, circle, spiral and pyramid.

Example strips (shuffled, about 25 / 50 / 75 % of the steps, sorted):

Quick sort strip in the columns layout.
Merge sort strip in the columns layout.
Heap sort strip in the columns layout.

Changes

  • Record mode. SORTVIS_RECORD=<dir> (plus SORTVIS_LAYOUT, SORTVIS_SORT, SORTVIS_FRAMES, SORTVIS_THEME, SORTVIS_SEED) skips the menu, draws one run (sorted, shuffle, sort, sorted) into an offscreen sf::RenderTexture and saves PNG frames. No window opens. A dry run counts the algorithm's steps first, so each algorithm gets about the same number of frames.
  • Normal mode unchanged. Without SORTVIS_RECORD, the window is created at the start of main() (before: as a global) and everything else runs as before. ArrayDrawer now draws onto any sf::RenderTarget; Menu got set_theme() (used only by record mode).
  • Assets (2.76 MB total): docs/hero.gif 2.39 MB (480 px, 15 fps, 64 colours), docs/layouts.png 60 KB, 16 strips in docs/algorithms/ (13-26 KB each, 311 KB total).
  • README: what it does, how it works, run, record, all 16 algorithms with strips, status, license, portfolio link. The screenshot TODO is gone.

Checks

  • Clean CMake build passes on Linux (SFML 2.6.2).
  • Record mode tested for all 16 algorithms and all 5 layouts; an unknown algorithm name exits with code 1.
  • The interactive (window) mode was not started in this test run, to avoid opening a window on the desktop. Its code path changed only in where the window is created.

🤖 Generated with Claude Code

ilyaeis and others added 3 commits October 31, 2026 04:15
- Record mode (SORTVIS_RECORD and other SORTVIS_* variables): draws one
  run into an offscreen sf::RenderTexture and saves PNG frames. No window
  opens. Without SORTVIS_RECORD the program works as before.
- ArrayDrawer draws onto any sf::RenderTarget.
- docs/hero.gif (one clip per layout), docs/layouts.png, and a 5-frame
  strip per algorithm in docs/algorithms/.
- README: how it works, run, record, algorithm list, status, link to
  the portfolio. Removes the screenshot TODO.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012G3kWcaMBo7MSwGBgwXaju
@ilyaeis
ilyaeis merged commit 50248af into main Oct 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants